package com.k7.mobile.platform.web.action;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.k7.mobile.platform.bo.IGramBO;
import com.k7.mobile.platform.dataobject.GramDO;
import com.k7.mobile.platform.dataobject.RecommendxDO;

/**
 * 首页
 * @author ouwa_bb
 *
 */
public class RecommendAction extends BaseAction{	
	private static final long serialVersionUID = -5048373149842002950L;
	
	private IGramBO gramBO;
	private Map jsonMap;	
	private Integer page;
	private Integer parentId;


	public String list() throws Exception {
		if(page == null)
			page = 1;
		jsonMap = new HashMap();
		RecommendxDO recommendDO = new RecommendxDO();
		recommendDO.setToPage(page);
		recommendDO.setParentId(parentId);
		List<GramDO> list = gramBO.findRecommendGameList(recommendDO);
		jsonMap.put("gramList", list);
		jsonMap.put("pageDO", recommendDO);
		return SUCCESS;
	}


	public Integer getPage() {
		return page;
	}


	public void setPage(Integer page) {
		this.page = page;
	}



	public Integer getParentId() {
		return parentId;
	}


	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}


	public Map getJsonMap() {
		return jsonMap;
	}


	public void setGramBO(IGramBO gramBO) {
		this.gramBO = gramBO;
	}

	
}
